package com.zsrt.java.ex.proxy.demo01;

public class App {
	
	public static void main(String[] args) {
		IUserDao target=new UserDao();
		
		System.out.println(target.getClass());
		
		//给目标对象创建代理对象
		IUserDao proxy=(IUserDao) new ProxyFactory(target).getProxyInstance();
		System.out.println(proxy.getClass());
		
		//执行方法【代理对象】
		proxy.save();
		
		
		
	}

}
